<?php /* Smarty version 2.6.25, created on 2013-10-30 00:15:08
         compiled from permission/views/admin.get-permission.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'permission/views/admin.get-permission.tpl', 1, false),)), $this); ?>
<?php if (count($this->_tpl_vars['allPers']) > 0): ?>
<table>
    <tbody>
    
    <?php $_from = $this->_tpl_vars['allPers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
        <?php if (count($this->_tpl_vars['item']['expand']) > 0): ?>
        <!-- Expandable permission -->
        <tr> 
            <td><?php echo $this->_tpl_vars['item']['description']; ?>
</td>
            <td style="text-align: right;padding-right: 20px;"">
                <a href="javascript:enableAllPermissions(<?php echo $this->_tpl_vars['groupId']; ?>
,<?php echo $this->_tpl_vars['item']['permission_id']; ?>
);">Enable All</a> 
                | 
                <a  href="javascript:disableAllPermissions(<?php echo $this->_tpl_vars['groupId']; ?>
,<?php echo $this->_tpl_vars['item']['permission_id']; ?>
);">Disable All</a>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table>
                    <?php $_from = $this->_tpl_vars['item']['expand']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item2']):
?>
                    <tr> 
                        <td><?php echo $this->_tpl_vars['item2']['expand_display_name_value']; ?>
</td>
                        <td  style="text-align: right;">
                            <?php if ($this->_tpl_vars['item2']['enabled'] == '1'): ?>
                                <a href="javascript:disablePermission(<?php echo $this->_tpl_vars['groupId']; ?>
,<?php echo $this->_tpl_vars['item']['permission_id']; ?>
, <?php echo $this->_tpl_vars['item2']['expand_table_id_value']; ?>
);" ><img src="<?php echo $this->_tpl_vars['LAYOUT_HELPER_URL']; ?>
admin/images/icons/visible16x16.png"></a>
                            <?php else: ?>
                                <a href="javascript:enablePermission(<?php echo $this->_tpl_vars['groupId']; ?>
,<?php echo $this->_tpl_vars['item']['permission_id']; ?>
, <?php echo $this->_tpl_vars['item2']['expand_table_id_value']; ?>
);" ><img src="<?php echo $this->_tpl_vars['LAYOUT_HELPER_URL']; ?>
admin/images/icons/invisible16x16.png"></a>
                            <?php endif; ?>
                        </td>
                    </tr>
                    <?php endforeach; endif; unset($_from); ?>
                </table>
            </td>
        </tr>
        <tr><td colspan="2"></td></tr>
        <?php else: ?>
        <tr>
            <td><?php echo $this->_tpl_vars['item']['description']; ?>
</td>
            <td  style="text-align: right;padding-right: 20px;">
                <?php if ($this->_tpl_vars['item']['enabled'] == '1'): ?>
                    <a href="javascript:disablePermission(<?php echo $this->_tpl_vars['groupId']; ?>
,<?php echo $this->_tpl_vars['item']['permission_id']; ?>
, '*');" ><img src="<?php echo $this->_tpl_vars['LAYOUT_HELPER_URL']; ?>
admin/images/icons/visible16x16.png"></a>
                <?php else: ?>
                    <a href="javascript:enablePermission(<?php echo $this->_tpl_vars['groupId']; ?>
,<?php echo $this->_tpl_vars['item']['permission_id']; ?>
, '*');" ><img src="<?php echo $this->_tpl_vars['LAYOUT_HELPER_URL']; ?>
admin/images/icons/invisible16x16.png"></a>
                <?php endif; ?>
            </td>
        </tr>
        <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>    
        
    
    </tbody>
</table>
<?php else: ?>
<div class="notification information png_bg">
    <div>
        There is no permission in this access.
    </div>
</div>
<?php endif; ?>